package kp.rpc.fault.tolerant.impl;

import kp.rpc.fault.tolerant.TolerantStrategy;
import kp.rpc.model.RpcResponse;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

@Slf4j
public class FailSafeTolerantStrategy implements TolerantStrategy {
    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e) throws Exception {
        log.error("FailSafeTolerantStrategy doTolerant error:{}", e.getMessage());
        return new RpcResponse();
    }
}
